<div id='breadcrumb'>
  <a href='/'>首页</a>><a href="/brands/<%=@brand.id%>"><%=@brand.name%></a>
</div>
<% if !@brand.description.blank? %>
  <h3>品牌故事</h3>
  <p>
    <%=@brand.description%>
  </p>
<% end %>

<% if @sub_category.size > 1 %>
  <div>
    <h4  class="brand_list_title">按类别选择</h4>
    <ul class="category_brand_list">
      <% for c in @sub_category %>
        <li><a href="/categories/<%=c.id%><%="?brand_id=#{params[:id]}"%>">
            <%="#{c.title}"%><span>|</span>
          </a></li>
      <%  end %>
    </ul>
  </div>
<% end  %>
  
<% if @products.count > 0 %>
  <ul id="product_list">
    <% for product in @products %>
      <%= render :partial =>'/products/product_li',:object=>product %>
    <% end %>
  </ul>
  <div id="pager">
    <%= will_paginate @products,:prev_label => '«上一页',:next_label => '下一页»' %>
  </div>

<%end%>